import type { ApiResponse } from '@/utils/request/type'
import { request } from '@/utils/request'

export interface LoginParams {
  username: string
  password: string
}
export function login(data: LoginParams) {
  return request.Post<ApiResponse<{
    token: string
  }>>('/auth/login', data)
}
